/**
 * @Author: Sun Yz
 * @Date: 2020-05-07 19:28:33
 */

class ViewerApi {
  constructor(viewer) {
    this._viewer = viewer
  }

  get viewer() {
    return this._viewer
  }

  addBaseLayer() {
    /**
     * 添加基础底图
     */
    MapInstance.addLayer('baseLayer', {
      type: MapInstance.LAYER_TYPE.XYZ,
      config: {
        url:
          'http://192.166.1.86:8760/smartgis.service/image?source=geoqColor&z={z}&x={x}&y={y}',
        minimumlevel: 0,
        maximumLevel: 13
      }
    })
  }
}

export default ViewerApi
